import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'flutter_kuafood_camera_method_channel.dart';

abstract class FlutterKuafoodCameraPlatform extends PlatformInterface {
  /// Constructs a FlutterKuafoodCameraPlatform.
  FlutterKuafoodCameraPlatform() : super(token: _token);

  static final Object _token = Object();

  static FlutterKuafoodCameraPlatform _instance = MethodChannelFlutterKuafoodCamera();

  /// The default instance of [FlutterKuafoodCameraPlatform] to use.
  ///
  /// Defaults to [MethodChannelFlutterKuafoodCamera].
  static FlutterKuafoodCameraPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [FlutterKuafoodCameraPlatform] when
  /// they register themselves.
  static set instance(FlutterKuafoodCameraPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future beginRecordVideo() {
    throw UnimplementedError('beginRecordVideo() has not been implemented.');
  }

  Future<String?> endRecordVideo() {
    throw UnimplementedError('endRecordVideo() has not been implemented.');
  }

  Future<void> switchFrontCamera(){
    throw UnimplementedError('switchFrontCamera() has not been implemented.');
  }

  Future<void> switchBackCamera(){
    throw UnimplementedError('switchBackCamera() has not been implemented.');
  }

  Future<void> openFlashLight(){
    throw UnimplementedError('openFlashLight() has not been implemented.');
  }

  Future<void> closeFlashLight(){
    throw UnimplementedError('closeFlashLight() has not been implemented.');
  }
}
